package com.gitee.zhanyao.monomer.contonller;

import com.gitee.zhanyao.monomer.model.ProjectInfo;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 获取项目相关信息
 */
@RestController
@RequestMapping("/project")
public class ProjectController {

    @GetMapping("/info")
    public ResponseEntity<ProjectInfo> getProjectInfo() {
        ProjectInfo projectInfo = new ProjectInfo();
        projectInfo.setName("管理系统");
        return new ResponseEntity<>(projectInfo, HttpStatus.OK);
    }

}
